package com.zzc.mapper;

import com.zzc.pojo.ApiMapping;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApiMappingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ApiMapping record);

    int insertSelective(ApiMapping record);

    ApiMapping selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ApiMapping record);

    int updateByPrimaryKey(ApiMapping record);

    /**
     * 查询全部
     * @param gatewayApiName
     * @param state
     * @return
     */
    List<ApiMapping> getApiMappingList(@Param("name") String gatewayApiName, @Param("state") Integer state);
}